#!/bin/bash

cd ./belf-consoleWeb
npm install --legacy-peer-deps --registry=https://registry.npmmirror.com
npm run build:prod
mkdir -p ../belf-console/src/main/resources/static
cp -r ./dist/* ../belf-console/src/main/resources/static

cd ../belf-console
gradle bootjar --no-daemon --info

cd ../belf-migrate
gradle shadowJar --no-daemon --info

